package HashCode;

public class HashTest {
    public static void main(String[] args) {
        Student student = new Student(3, 2, "dongkui", "li");
        System.out.println(student.hashCode());
        System.out.println(student);

        Student student2 = new Student(3,2,"dongkui","li");
        System.out.println(student2.hashCode());
        System.out.println(student2);

        System.out.println(student == student2);
        System.out.println(student.equals(student2));


    }
}
